<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>       
    <%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld" %>
<%@taglib prefix="mu" uri="/WEB-INF/tld/mallutil.tld" %>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="import" %>
<style> 
.promo-popup{padding:10px;*padding:10px 0 10px 8px; color:#666;line-height:1.4em; }
.promo-popup h2,.promo-popup h3{font-size:15px;color:#d12e6f; margin-bottom:.8em;}
.promo-popup h3{color:#666;}
.promo-popup p{margin:.5em 0;}
.promo-popup .d-line{background:url(/images/link_dote.gif) repeat-x scroll 0 50%; padding:1px 0;}
.promo-popup ol,.promo-popup ul{margin-bottom:1em;margin-left:2em;}
.promo-popup li{list-style:decimal;}
</style>
<script src="/js/pageable.js"></script>
${pu:reqSet('order', pu:get('com.yaodian100.ec.order.entity.Orders', param.orderId)) }
<script>
$(function(){ 
	$('#current_location').html(' > 变更商品缺货配送处理方法');
}); 
</script>
<c-rt:if test="${order.memberId==mu:memberId()}">

<script>
$().ready(function(){
	$("#chkAllowSplit").dialog({
		bgiframe: true,
		autoOpen: false,
		height: 150,
		width:290,
		modal: true
	});	
	$("#chkOK").click(function(){
		$("#chkAllowSplit").dialog('close');
	});
	$("#go_next").click(function() {
		if ($('input[name=allowSplit]').is(":checked") == false){
			$('#chkAllowSplit').dialog('open');
			return false;
		}else{
			$("#modAllowSplitForm").submit();
			return false;
		}	
	});

});
</script>
<s:form action="orderMod/modAllowSplitExt.do" id="modAllowSplitForm" name="modAllowSplitForm" method="post">
<input type="hidden" name="orderId" value="${order.orderId}"/>
  <!-- content start -->
  <div class="content mb-od-dtl">
      <!-- 我的訂單 -->
      <h2>变更商品缺货配送处理方法</h2>
      <div class="d-show">
          <ul>
            <li class="w-1of1"><p><strong>当前的商品缺货配送处理方法：<span class="txt-rd"><c-rt:if test="${order.allowSplit == 'Y'}">有货先发</c-rt:if><c-rt:if test="${order.allowSplit != 'Y'}">货齐再发</c-rt:if></span></strong></p></li>
            <li class="w-1of1">&nbsp;</li>
            	<li class="w-1of1"><label><input name="allowSplit" type="radio" value="Y" />&nbsp;<strong>有货先发</strong>（若订单中部分商品缺货，优先配送有货商品，订单将会被拆分成多张订单，总订单金额不变，<span class="txt-rd">不支持货到付款</span>）</label></li>
            	<li class="w-1of1"><label><input name="allowSplit" type="radio" value="N" />&nbsp;<strong>货齐再发</strong>（若订单中部分商品缺货，则会等到商品补齐再配送）</label></li>
            <li class="w-1of1">&nbsp;</li>
            </ul>
        <p align="center">
        <a id="go_next"  href="javascript:;" class="btn-mid">继续</a> 
	        <a href="<%=ServerValue.getFrontContextPath()%>/member/order/page.do?page=detail&orderId=${order.orderId}" class="btn-mid">回订单页</a>
		</p>
	    </div>
   </div>
   <!-- 我的訂單 -->
  <!-- content end -->
  </s:form>
</c-rt:if>
<c-rt:if test="${order.memberId!=mu:memberId()}">
您无权查看本订单
</c-rt:if>
<div id="chkAllowSplit" title="温馨提示" class="alert-caution" style="display: none;">
         <p>请选择商品缺货配送处理方法。</p>
         <div align="center"><a href="javascript:;"  id="chkOK" class="btn-mid" onfocus="blur()">确定</a></div>

</div>